The :invalid CSS pseudo-class

128

/* Selects any invalid <input> */
input:invalid {
  background-color: pink;
}

Comments

Submit
0 Comments